package com.homework.str;

public class test8 {
  public static void main(String[] args) {
    //11#2#333#444#55
      String s = "11#2#333#444#55";
      String[] sarr = s.split("#");
      int resule = 0;
      for (String a : sarr) {
          int x = Integer.parseInt(a);
          resule += x;
      }
    System.out.println(resule);
  }
}
